package com.demo.mapper;

import com.demo.pojo.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 课程Mapper接口
 * @description 针对表【course】的数据库操作Mapper
 * @Entity com.demo.pojo.entity.Course
 */
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    @Select("select * from course where co_id = #{id}")
    Course selectById2(Long id);

    @Select("select * from course where co_name = #{coName}")
    Course selectByName(String coName);
}


